#!/usr/bin/evn python
# -*- coding: UTF-8 -*-
# @File: conftest.py
# @Author: fy
# @date: 2021/9/13 15:34

import pytest
from pages.app import App

DRIVER_APP_GLOBAL = None
@pytest.fixture(scope="session")
def startApp():
    print("startApp")
    app = App(DRIVER_APP_GLOBAL)

    desired_cap = {
        "skipDeviceInitialization": "True"
    }
    app.start(desired_capabilities=desired_cap)
    return app
